<?php session_start();?>
<!--版权部分-->
<style>
    div.footer,div.footer-href,div.victor{
        width: 320px;
        position: relative;
        left: 50%;
        margin: 10px 0px 5px -160px;
        text-align: center;
    }
    div.victor img{
        display: inline;
    }
</style>
<div class="footer">Copyright &copy; 2019-<?php date_default_timezone_set('PRC');
    echo date('Y') ?> HXB_DreamMav版权所有
</div>
<div class="footer-href">
    <a href="">帮助</a>&nbsp;-&nbsp;
    <a href="">发送返馈</a>&nbsp;-&nbsp;
    <a href="">关于</a>&nbsp;-&nbsp;
    <a href="">隐私</a>
</div>

<div class="victor">本站访问量&nbsp;
<?php
$f = file_get_contents("conf/visitor.txt");
for ($i=0;$i<strlen($f);$i++){
    $index = substr($f,$i,1);   //截取单个字符
    ?>
        <img src=<?php echo 'img/v'.$index.'.png'?> width="28" class="img-responsive">
    <?php
}
if (!$_SESSION['login_user']){
    file_put_contents("conf/visitor.txt",$f+1);
}

?>
</div>
